Wpf 實現拖拽效果 1、設置源控件和目標控件的AllowDrop=true listBox1.AllowDrop = true; <Style TargetType="ListBoxItem"> ...